package com.ganzalang.gmall.rocketmq.controller;

import com.ganzalang.gmall.rocketmq.producer.OrderProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: Ganzalang
 * @Date 2021/5/8 11:54
 */
@RestController
public class RocketmqController {

    @Autowired
    private OrderProducer orderProducer;

    @GetMapping("/test")
    public void test() {
        orderProducer.send();
    }
}
